﻿

namespace MedVis_MidiController
{
    public class preDefinedWindow
    {
        public int windowWidth { get; private set; }
        public int windowCenter { get; private set; }

        public preDefinedWindow(int windowCenter, int windowWidth)
        {
            this.windowWidth = windowWidth;
            this.windowCenter = windowCenter;
        }
    }

    public static class preDefinedWindows
    {
        public static preDefinedWindow lung = new preDefinedWindow(-600, 1600);
        public static preDefinedWindow bone = new preDefinedWindow(300, 2000);
        public static preDefinedWindow soft = new preDefinedWindow(60, 360);
        public static preDefinedWindow brain = new preDefinedWindow(40, 80);
        public static preDefinedWindow angio = new preDefinedWindow(100, 900);

        public enum Enum
        {
            Keins,
            Lungenfenster,
            Knochenfenster,
            Weichteilfenster,
            Gehirnfenster,
            CT_Angiographiefenster
        }

        public static preDefinedWindow getWindowByEnum(Enum a)
        {
            switch (a)
            {
                case Enum.Lungenfenster: return lung;
                case Enum.Knochenfenster: return bone;
                case Enum.Weichteilfenster: return soft;
                case Enum.Gehirnfenster: return brain;
                case Enum.CT_Angiographiefenster: return angio;
                default: return null;
            }
        }
    }
}
